package com.sgcc.nfc.lock.domain.usecase

import com.sgcc.nfc.lock.core.network.NetworkResult
import com.sgcc.nfc.lock.domain.repository.LockRepository
import javax.inject.Inject

class AddLockUseCase @Inject constructor(
    private val repository: LockRepository
) {
    suspend operator fun invoke(lockNfcId: String, roomId: Long): NetworkResult<Unit> =
        repository.addLock(lockNfcId, roomId)
}
